<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="w"%>
<html>

<style>
    .fontsize{
        font-size: 15px;
        font-weight: bolder;
    }
    .fontsize i{
        font-style: normal;
        color: #999;
    }
</style>
<body class="easyui-layout">
    <div data-options="region:'center'" class="bodybg">
        <form method="post" action="/integral/IntegralPage@show.page" method="post" id="ingfrom">
            <w:hidden bind="pageNum"/>
            <w:hidden bind="pageSize_"/>
            <w:hidden bind="bean.id"/>
            <w:hidden bind="bean.integral"/>
            <w:hidden bind="bean.name"/>
            <div border="false" data-options="doSize:false">
                <div>
                <span class="fontsize">积分明细&nbsp;<i>(<w:write bind="bean.name"/>)</i></span>
            </div>
                <div class="ui_line" style="margin-top:10px"></div>
                <!-- 数据列表区域 -->
                <table class="ui-table" width="100%" data-options="showPage:true,form:'ingfrom',pageNum:<w:write bind="pageNum"/>,pageSize:<w:write bind="pageSize_"/>,total:<w:write bind="pagination.totalCount"/>" cellpadding="1" cellspacing="1">
                    <thead>
                    <tr class="ui_th">
                        <td>日期</td>
                        <td>收入/支出</td>
                        <td>数量</td>
                        <td>详细说明</td>
                    </tr>
                    </thead>
                    <tbody>
                    <w:iterate id="info" bind="resultList_">
                    <tr class="ui_td">
                        <td><w:write bind="#info.create_time" format="yyyy-MM-dd HH:mm"/></td>
                        <input type="hidden" class="name" value="<w:write bind="#info.userid"/>">
                        <w:define id="info_integral" bind="#info.integral"/>
                        <w:switch>
                            <w:case bind="#info_integral>0">
                                <td>收入</td>
                            </w:case>
                            <w:else>
                                <td>支出</td>
                            </w:else>
                        </w:switch>
                        <td><w:write bind="#info.integral"/></td>
                        <td><w:write bind="#info.content"/></td>
                    </tr>
                    </w:iterate>
                   <%-- <tr class="ui_td">
                        <td>2017-05-16 12:59:59</td>
                        <td>支出</td>
                        <td>1564</td>
                        <td>兑换面值10元购物街消费积分</td>
                    </tr>
                    </tbody>
                </table>--%>
            </div>
            <div style="width: 100%;  text-align: center; position: absolute;z-index: 10000;bottom:0;background-color: #eee" class="ui-buttonBar ui-btn">
                <div style="font-weight: bold;width: 20%;float: right;">积分余额2：<w:write bind="bean.integral"/></div>
            </div>
        </form>
    </div>
</body>
<script>

</script>

</html>
